projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b108eac
)
(custom-save-delete): Avoid error for empty .emacs.
author
Karl Heuer
<kwzh@gnu.org>
Sun, 25 Jul 1999 05:50:42 +0000
(
05:50
+0000)
committer
Karl Heuer
<kwzh@gnu.org>
Sun, 25 Jul 1999 05:50:42 +0000
(
05:50
+0000)
lisp/cus-edit.el
patch
|
blob
|
history
diff --git
a/lisp/cus-edit.el
b/lisp/cus-edit.el
index 98c0aa6a4d7cf2cd6e33494c648947ac414f9f6a..ef0e0dc5552b0c3f384999e82ed7f0deb7d109cc 100644
(file)
--- a/
lisp/cus-edit.el
+++ b/
lisp/cus-edit.el
@@
-3101,7
+3101,10
@@
Leave point at the location of the call, or after the last expression."
(let ((default-major-mode))
(set-buffer (find-file-noselect (custom-file))))
(goto-char (point-min))
- (save-excursion (forward-sexp (buffer-size))) ; Test for scan errors.
+ ;; Skip all whitespace and comments.
+ (while (forward-comment 1))
+ (or (eobp)
+ (save-excursion (forward-sexp (buffer-size)))) ; Test for scan errors.
(catch 'found
(while t
;; Skip all whitespace and comments.